
class SortMarkerEntity {
  num latitude;//纬度
  num longitude;//经度
  int numSort;
  int ticketNumber; 
  String phone;
  String address;

  SortMarkerEntity({
     this.latitude,
     this.longitude,
     this.numSort,
     this.ticketNumber,
     this.phone,
     this.address
  });

  static SortMarkerEntity fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    SortMarkerEntity latLng = SortMarkerEntity();
    latLng.latitude = map['latitude'];
    latLng.longitude = map['longitude'];
    latLng.numSort = map['numSort'];
    latLng.ticketNumber = map['ticketNumber'];
    latLng.phone = map['phone'];
    latLng.address = map['address'];
    return latLng;
  }

  Map toJson() => {
    "latitude": latitude,
    "longitude": longitude,
    "numSort": numSort,
    "ticketNumber": ticketNumber,
    "phone": phone,
    "address": address
  };
}
